<template>
  <view class="container">
    <view class="success-icon">&#10004;</view>
    <view class="success-message">支付成功</view>
    <view class="description">您已支付成功，感谢您的购买！</view>
    <view class="button-group">
      <button @click="goBack" class="back-button">返回商城</button>
      <button @click="viewOrder" class="order-button">查看订单</button>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    goBack() {
      // 返回商城的逻辑
      uni.navigateTo({
        url: '/packagesJiFen/JiFenShouYe/JiFenShouYe'
      });
    },
    viewOrder() {
      // 查看订单的逻辑
      uni.navigateTo({
        url: '/packagesJiFen/JiFenShouYe/JiFenShouYe'
      });
    }
  }
}
</script>

<style>
.container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.success-icon {
  font-size: 48px;
  color: #4CAF50;
  margin-bottom: 20px;
}

.success-message {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.description {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.button-group {
  display: flex;
  gap: 10px;
}

.back-button, .order-button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

.back-button {
  background-color: transparent;
  border: 1px solid #999;
  color: #333;
}

.order-button {
  background-color: #2196F3;
  color: white;
  border: none;
}
</style>
